/* MAIN */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.navbar {
    background-color: transparent;
    padding: 20px;
    color: #fff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: 0.5s;
}

.navbar.shadow {
    background-color: #24b3a596;
}

.navbarlogo {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
}

.navbarlogo img {
    width: 70px;
    height: auto;
    margin: 10px 10px 10px 20px;
}

.navbarlogo span {
    font-size: 24px;
    font-weight: bold;
}

.nav-links {
    display: flex;
    list-style: none;
    padding-right: 40px;
}

.nav-links li {
    margin-right: 30px;
    position: relative;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 500;
    text-transform: uppercase;
    position: relative;
    display: flex;
    align-items: center;
    gap: 5px;
}

.nav-links a::after {
    content: '';
    width: 0;
    height: 2px;
    background-color: white;
    position: absolute;
    bottom: -4px;
    left: 0;
    transition: 0.2s all linear;
}

.nav-links a:hover::after {
    width: 100%;
}

.menu-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
}
.home-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: white;
}
.close-icon {
    display: none;
    font-size: 24px;
    cursor: pointer;
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
}

/* WELCOME SECTION */
.welcome-section {
    width: 100%;
    background: url(IMAGE/brgy456.png) no-repeat center center/cover;
    position: relative;
}
.welcome-container {
    position: relative;
    z-index: 2;
    color: white;
    padding: 80px 10%;
    min-height: 68.3vh;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}
.welcome-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}
.welcome-layout {
    display: flex;
    align-items: center;
}
.barangay-logo {
    width: 400px;
    height: 310px;
    margin-right: 30px;
}
.welcome-content {
    flex-direction: column;
    justify-content: center;
}
.welcome-text, .barangay-name {
    text-shadow: 2px 2px 3px black;
}
.welcome-text {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: -25px;
    text-transform: uppercase;
}
.barangay-name {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: -5px;
}
.contact-info {
    font-size: 20px;
    line-height: 1.5;
}

.about-button {
    display: inline-flex;
    margin-top: 20px;
    background-color: #fff;
    color: black;
    padding: 15px 28px;
    font-size: 18px;
    text-decoration: none;
    transition: 0.3s ease-in-out;
}
.about-button:hover {
    background: transparent;
    color: white; /* Optional: match original background color */
    border: 2px solid white;
}

.welcome-layout {
    transform-origin: top;
    animation: facedown 1.5s ease-in-out forwards;
}
@keyframes facedown {
    from {
        transform: rotateX(15deg);
        opacity: 0;
    }
    to {
        transform: rotateX(0deg);
        opacity: 1;
    }
}
/* Optional: Add a hover effect */
.welcome-layout:hover {
    transform: rotateX(10deg); /* Slight tilt for effect */
    transition: transform 0.3s ease-in-out;
}

/* ABOUT US (INDEX) */
.aboutus-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    padding: 50px 10%;
}

.about-container {
    flex: 1;
    padding: 20px;
}
.about-content img {
    height: 100%;
    width: 100%;
    object-fit: cover;
}
.brgy-name {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}
.name {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    width: 100%;
    max-width: 300px;
}
.name h3 {
    color: #3a3d3e;
    font-size: 18px;
}
.about-container, .brgy-name {
    padding: 25px;
}
.brgy-info {
    background-image: url(IMAGE/philippinemap.png);
    object-fit: cover;
    text-align: justify;
    font-size: 16px;
    color: #333;
    line-height: 1.6;
}

.brgy-info h1 {
    font-size: 30px;
    text-align: left;
}
.brgy-info p {
    color: #3a3d3e;
    line-height: 1.5;
    font-size: 18px;
    margin-bottom: 17px;
}
.aboutus-section, .chairman-section {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}
.brgy-info button {
    background-color: #24b3a5;
    color: white;
    font-size: 16px;
    padding: 12px 24px;
    border: none;
    cursor: pointer;
    margin: 10px 0;
    transition: 0.3s ease-in-out;
}
.brgy-info button:hover {
    background: transparent;
    color: black; /* Optional: match original background color */
    border: 1px solid black;
}

/* ABOUT US PAGE */
.history-info {
    padding: 20px 10%;
}
.history-info h1 {
    color: #3a3d3e;
    font-size: 35px;
}
.history-info p {
    color: #3a3d3e;
    text-align: justify;
    line-height: 1.5;
    font-size: 18px;
    margin-bottom: 17px;
}

/* MISSION AND VISION */
.missionvision-section {
    padding: 40px 5%;
    background: linear-gradient(135deg, #83f3e7, #47c8bb);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.mission-container, .vision-container {
    flex: 1;
    min-width: 300px;
    max-width: 450px;
    padding: 40px 30px;
    background: white;
    border-radius: 5px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    text-align: center;
}

.mission-content h1, .vision-content h1 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.mission-content hr, .vision-content hr {
    width: 60px;
    height: 3px;
    background: #20998d;
    border: none;
    margin: 0 auto 25px;
}

.mission-content p, .vision-content p {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    text-align: justify;
}  
html {
    scroll-behavior: smooth;
}

/* OFFICIALS SECTION */
.barangayofficials-section {
    padding: 50px;
    background: linear-gradient(135deg, #83f3e7, #47c8bb);
    text-align: center;
}

.barangayofficials-section h1 {
    color: #3a3d3e;
    font-size: 50px;
}

.barangayofficials-section h2 {
    color: #3a3d3e;
}

.officials-container {
    margin-top: 30px;
}

.chairman-section {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.other-officials-section {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.official-card img {
    width: 100px;
    height: 100px;
    object-fit: cover;
    border-radius: 7px;
    background-color: white;
}

.official-card .official {
    width: 150px;
    height: 150px;
    object-fit: cover;
    margin-bottom: 5%;
}

.official-name {
    font-size: 20px !important;
    font-weight: bold;
    color: #fff;
    margin-bottom: 2px;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.803)
}

.official-role {
    font-size: 15px !important;
    color: #20998d;
    font-weight: bold;
}

/* SERVICES */
.services-section {
    background-color: #fff;
    padding: 50px;
}

.content-wrapper {
    padding: 30px;
    text-align: center;
}

.content-wrapper h2 {
    color: #3a3d3e;
    font-size: 50px;
    margin-bottom: 40px;
}

.services-container {
    display: flex;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
}

.services-column {
    flex: 1;
    padding: 30px;
}

.services-column h3 {
    color: #3a3d3e;
    font-size: 24px;
    margin-bottom: 25px;
    text-align: center;
}

.service-item {
    display: flex;
    align-items: center;
    background: white;
    padding: 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    border-right: 5px solid #24b3a5;
    transition: transform 0.2s ease;
}
.service-item:hover {
    transform: translateY(-2px);
}

.service-item:last-child {
    margin-bottom: 0;
}

.service-icon {
    width: 40px;
    height: 40px;
    margin-right: 15px;
    flex-shrink: 0;
}

.service-name {
    font-size: 16px;
    font-weight: 500;
    color: #333;
    flex-grow: 1;
}
/* Make the whole service-item clickable */
.service-link {
    display: block;
    text-decoration: none;
    color: inherit;
    margin-bottom: 10px;
}

/* Enhance hover effect */
.service-item {
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.service-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}



/* Certificates & Services */
.residencydes {
    width: 80%;
    max-width: 800px;
    margin: 50px auto;
    background-color: white;
    padding: 20px 30px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.residencydes h2 {
    text-align: center;
    color: #3a3d3e;
    font-size: 22px; 
    padding: 20px;
}
.residencydes p {
    text-align: justify;
    margin-bottom: auto;
    color: #888d8f;

}
.form-group {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.input-container {
    position: relative;
    width: 100%;
}
.input-container input {
    padding: 17px 14px;
    margin-top: 5px;
    font-size: 16px;
    border: 1px solid lightgray;
    border-radius: 5px;
    color: #333;
    outline: none;
    transition: 0.3s ease-in-out;
    background: transparent;
}
.input-container label {
    position: absolute;
    top: 50%;
    left: 14px;
    transform: translateY(-50%);
    font-size: 16px;
    color: gray;
    transition: 0.3s ease-in-out;
    pointer-events: none;
    background: white;
    padding: 0 5px;
}
.input-container select {
    width: 100%;
    padding: 16px;
    font-size: 16px;
    border: 1px solid lightgray;
    border-radius: 5px;
    color: #333;
    outline: none;
    background: white;
    transition: 0.3s ease-in-out;
}
.input-container select:hover,
.input-container select:focus {
    border-color: #002080;
}
.input-container input:focus + label,
.input-container input:not(:placeholder-shown) + label {
    top: 5px;
    font-size: 12px;
    color: #002080;
}
h3 {
    font-size: 15px;
    color: #888d8f;
    font-weight: bold;
    text-align: center;
    margin-bottom: auto;
}
.input-container input[readonly] {
    background-color: white;
    cursor: not-allowed;
}
.input-container {
    position: relative;
    width: 100%;
}

.input-container textarea {
    width: 96%;
    padding: 18.5px 14px;
    margin-top: 5px;
    font-size: 16px;
    border: 1px solid lightgray;
    border-radius: 5px;
    color: #333;
    outline: none;
    transition: 0.3s ease-in-out;
    background: transparent;
    resize: vertical; /* Allows resizing */
    min-height: 80px; /* Ensures default height */
    max-height: 200px; /* Prevents excessive height */
}

.input-container textarea:hover {
    border-color: #002080;
}

.input-container textarea:focus {
    border-color: #002080;
}

.input-container label {
    position: absolute;
    top: 18px; /* Adjusts for textarea height */
    left: 14px;
    font-size: 16px;
    color: gray;
    transition: 0.3s ease-in-out;
    pointer-events: none;
    background: white;
    padding: 0 5px;
}

/* Move label when textarea is focused or contains text */
.input-container textarea:focus + label,
.input-container textarea:not(:placeholder-shown) + label {
    top: 5px;
    font-size: 12px;
    color: #002080;
}

/* Emergency Contact Section */
.emergency-contact {
    margin-top: 20px;
    padding: 15px;
    border-radius: 10px;
}

.form-columns {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}

.form-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 300px;
}

.input-container {
    position: relative;
    display: flex;
    flex-direction: column;
}
.submit-btn, .clear-btn {
    width: 15%;
    padding: 12px;
    font-size: 18px;
    background: #0033a0;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    margin-top: 15px;
    float: right; /* Aligns the button to the right */
}
.submit-btn:hover {
    background-color: #002080;
}
.clear-btn {
    width: 15%;
    padding: 12px;
    font-size: 18px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    text-align: center;
    margin-top: 15px;
    float: right; /* Aligns the button to the right */
}
.clear-btn:hover {
    background-color: #2b8000;
}
.button-container {
    display: flex;
    justify-content: flex-end;
    margin-top: 15px;
}
.button-profile {
    display: flex;
    justify-content: center;
    margin: 15px 0 30px 0;
}
.existing-profile-btn {
    background-color: #0033a0; /* Blue color */
    color: white;
    font-size: 13px;
    padding: 10px 20px;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.existing-profile-btn:hover {
    background-color: #002080; /* Darker blue */
    transform: scale(1.05);
}

/* Modal button */
.modal {
    display: flex; /* Ensures it is hidden on page load */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background: white;
    padding: 20px;
    border-radius: 8px;
    text-align: center;
    width: 350px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
}
.modal-content input {
    width: 90%;
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #ccc;
    border-radius: 5px;
}
.confirm-btn {
    background-color: #002080;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    font-size: 13px;
    border-radius: 3px;
    transition: background 0.3s ease;
}
.confirm-btn:hover {
    background-color: #001060;
}
/* Modal Footer */
.modal-footer {
    margin-top: 15px;
    display: flex;
    justify-content: space-between;
}
.back-btn, .disabled-btn {
    padding: 8px 12px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 5px;
}
.back-btn {
    color: #354a8b;
    font-weight: bold;
}
.disabled-btn {
    background: #ccc;
    color: #666;
    pointer-events: none;
}

/* Page header */
#page-header {
    background-image: url(IMAGE/brgyres.png);
    height: 50vh;
    background-size: cover;
    display: flex;
    justify-content: center;
    flex-direction: column;
    text-align: center;
    padding: 14px;
}
.about-header h1 {
    font-size: 70px;
    color: white;
    padding: 0;
    margin: 0;
}
.about-header p {
    color: white;
    font-size: large;
}

/* TRACK REQUEST */
.track-section {
    background-color: #0033a0;
    padding: 20px 0;
    display: flex;
    justify-content: center;
}

.track-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    max-width: 1200px; /* Adjust to your layout */
    width: 100%;
    padding: 10px 5%;
}

.track-text h2 {
    color: white;
    font-size: 35px;
    font-weight: bold;
}

.track-text p {
    color: #c0c7d6;
    font-size: 16px;
}

.track-form {
    display: flex;
    align-items: center;
}

.track-form input {
    padding: 12px;
    font-size: 16px;
    border: none;
    outline: none;
    width: 350px;
    border-radius: 4px 0 0 4px;
}

.track-form button {
    background-color: #1a9c8e;
    color: white;
    font-size: 16px;
    padding: 12px 20px;
    border: none;
    cursor: pointer;
    border-radius: 0 4px 4px 0;
}

.track-form button:hover {
    background-color: #138676;
}

/* MAP */
.barangay-location {
    position: relative;
    background: #f8f9fa;
}
.contact-info-section {
    background: #f8f9fa;
    padding: 60px 0;
}

.contact-container {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 0 auto;
}

.contact-item {
    background: white;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
    min-width: 250px;
}

.contact-icon {
    font-size: 50px;
    color: #24b3a5;
    margin-bottom: 15px;
}

.contact-title {
    font-size: 18px;
    font-weight: bold;
    color: #3a3d3e;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.contact-item p {
    color: #7f8c8d;
    font-size: 16px;
    line-height: 1.6;
    margin: 5px 0;
}

/* Map container */
.map-container {
    width: 100%;
    height: 450px;
    position: relative;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: 0;
}
/* DAILY ANNOUNCEMENT */
.daily-updates {
    border: 1px solid #cecece;
    border-top: none; /* Removes the top border */
    margin: 15px 100px 0 100px;
    border-radius: 5px;
}
.daily-updates h1 {
    color: #3a3d3e;
    font-size: 50px;
    text-align: center;
}
.announcement-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    padding: 50px 0px;
}
.a-card {
    width: 300px;
    border: 1px solid #ccc;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s;
}
.a-card:hover {
    transform: scale(1.05);
}
.a-card img, .a-card video {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.a-card-content {
    padding: 10px;
    text-align: left;
}
/* Modal Styling */
.modal-announce {
    display: none;
    position: fixed;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 9999;
    justify-content: center;
    align-items: center;
}
.modal-announce .modal-content {
    background-color: #fff;
    border-radius: 10px;
    width: 80%;
    max-width: 1000px;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    padding: 20px;
}
.modal-announce img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    object-fit: cover;
}
.modal-announce .modal-text {
    padding-top: 20px;
}
.modal-announce .close-btn {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 30px;
    font-weight: bold;
    color: #be2a2a;
    cursor: pointer;
}

/* TRACKING */
.track {
    width: 80%;
    margin: 50px auto;
    background: #fff;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
/* Search Container */
.search-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.search-container input {
    width: 70%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}
.search-container button {
    padding: 10px 15px;
    background-color: #285FD4;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: 0.3s;
}
.search-container button:hover {
    background-color: #1e4db7;
}
/* Table Styles */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 10px;
    background: white;
    border: 1px solid #ccc; /* Light black border for a professional look */
}
thead {
    color: #3a3d3e;
    border-bottom: 1px solid #333; /* Light black border */
}
thead th {
    padding: 12px;
    text-align: left;
    border: 1px solid #c0c2c2;
}
tbody tr:nth-child(even) {
    background-color: #f9f9f9;
}
tbody tr:hover {
    background-color: #e3e3e3;
}
td {
    padding: 10px;
    border-bottom: 1px solid #ddd;
}
/* Status Colors */
td[style*='color: #13AE2F'] { font-weight: bold; }
td[style*='color: #285FD4'] { font-weight: bold; }
td[style*='color: #CA831F'] { font-weight: bold; }

/* No Record Found Row */
#noRecordRow td {
    font-weight: bold;
    color: red;
    text-align: center;
}

/* FOOTER */
.footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #222; /* Dark background */
    padding: 40px 10%;
    color: white;
}
.footer div {
    flex: 1;
    text-align: center;
}
.footer-logo {
    width: 120px; /* Adjust size as needed */
    height: auto;
    margin-bottom: 10px;
}
.footer p {
    font-size: 14px;
    color: #bbb; /* Lighter text color */
    max-width: 300px;
    margin: 0 auto;
}
.footer h3 {
    font-size: 16px;
    color: white;
    margin-bottom: 10px;
}
.footer a {
    display: block;
    text-decoration: none;
    color: #bbb;
    font-size: 14px;
    margin-bottom: 5px;
    transition: 0.3s;
}
.footer a:hover {
    color: #fff;
}
.credits {
    background-color: black;
    color: rgb(165, 165, 165);
    padding: 20px;
    text-align: right;
    font-size: 13px;
}
.tap-up {
    position: fixed;
    z-index: 1000;
    width: 50px;
    height: 50px;
    right: 50px;
    bottom: 50px;
    border-radius: 10px;
    line-height: 50px;
    text-align: center;
}
.tap-up i {
    font-size: 20px;
    color: white;
    background-color: #24b3a5;
    border-radius: 25%;
    padding: 20px;
}


/* MEDIA QUERY */
@media (min-width: 1025px) and (max-width: 1440px) {
    .location-container {
        padding: 20px 150px;
    }
    .track-container {
        padding: 30px 8%;
    }
    .track-form input {
        width: 75%;
    }
    .track-form button {
        width: 25%;
    }
    .footer {
        padding: 40px 8%;
    }
    .official-list {
        flex-wrap: wrap;
        justify-content: space-between;
    }
    .card {
        width: 320px; /* Larger size for bigger screens */
        margin: 10px auto;
    }
    .submit-btn, .clear-btn {
        width: 18%;
    }
    .daily-updates {
        margin: 15px 80px;
    }
    .daily-updates h1 {
        font-size: 36px;
    }
    .announcement-container {
        gap: 15px;
    }
}

@media (min-width: 800px) and (max-width: 1024px) {
    .location-container {
        padding: 20px 80px;
    }
    .track-form input {
        width: 70%;
    }
    .track-form button {
        width: 30%;
    }
    .footer {
        display: flex;
        justify-content: space-around;
        padding: 30px 5%;
    }

    .footer div {
        flex: 1;
        text-align: center;
        max-width: 250px;
    }
    .footer-logo {
        width: 100px;
    }
    .footer p {
        font-size: 13px;
        max-width: 220px;
    }
    .footer h3 {
        font-size: 15px;
    }
    .footer a {
        font-size: 13px;
    }
    .submit-btn, .clear-btn {
        width: 20%;
    }
    .daily-updates {
        margin: 15px 50px;
    }
    .daily-updates h1 {
        font-size: 34px;
    }
    .a-card {
        width: 260px;
    }
}

@media (max-width: 799px) {
    /* Navigation */
    .nav-links {
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: -100%;
        height: 100vh;
        width: 400px;
        background: #333;
        text-align: center;
        padding: 20px 0;
        transition: 0.3s ease-in-out;
    }
    .nav-links.active {
        right: 0;
    }
    .nav-links li {
        margin: 20px 0;
    }
    .menu-icon {
        display: block;
        padding-right: 40px;
    }
    .home-icon {
        display: block;
        padding-right: 40px;
    }
    .close-icon {
        display: block;
        font-size: 15px;
    }
    /*Welcome page */
    .welcome-container {
        flex-direction: column;
        text-align: left;
        padding: 50px 5%;
    }
    .welcome-layout {
        flex-direction: column;
    }
    .barangay-logo {
        width: 150px;
        height: 150px;
        margin-top: 15px;
        margin-right: auto;
    }
    .welcome-text {
        font-size: 28px;
        margin-bottom: -15px;
    }
    .barangay-name {
        font-size: 28px;
    }
    .contact-info {
        font-size: 16px;
    }
    .about-button {
        padding: 10px 20px;
        font-size: 14px;
    }

    /* About us section */
    .aboutus-section {
        flex-direction: column;
        text-align: center;
        padding: 30px 5%;
    }
    .about-container, .brgy-name {
        width: 100%;
        padding: 15px;
    }
    .about-content img {
        width: 100%;
        height: auto;
    }
    .brgy-info h1 {
        font-size: 26px;
    }
    .brgy-info p {
        font-size: 16px;
    }

    /* Mission and Vision */
    .missionvision-section {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
    .mission-container, .vision-container {
        width: 90%;
        margin: 10px 0;
    }
    .mission-content h1, .vision-content h1 {
        font-size: 26px;
    }
    .mission-content p, .vision-content p {
        font-size: 15px;
    }

    /* Banner */
    .banner img {
        width: 90%; /* Reduce the width for better responsiveness */
        padding: 0; /* Remove left/right padding */
    }
    /* Official */
    .official-list {
        flex-wrap: wrap;
        justify-content: center;
    }
    .card {
        width: 90%; /* 1 card per row */
    }

    /* Services */

    /* Track */
    .track-container {
        flex-direction: column;
        text-align: center;
        padding: 20px 5%;
    }
    .track-text h2 {
        font-size: 28px;
    }
    .track-text p {
        font-size: 15px;
    }
    .track-form {
        max-width: 100%; /* Ensures it doesn't shrink too much */
    }
    .track-form input {
        width: 70%; /* Keeps input and button in one line */
    }
    .track-form button {
        width: 30%;
        white-space: nowrap; /* Prevents text from breaking */
    }
    .search-container {
        flex-direction: row; /* Maintain row direction on smaller screens */
        flex-wrap: wrap;
        justify-content: center;
    }
    .search-container input {
        width: 70%;
    }
    .search-container button {
        width: auto;
    }
    table {
        font-size: 14px;
    }
    thead th {
        padding: 8px;
    }
    td {
        padding: 8px;
    }
    .submit-btn, .clear-btn {
        width: 30%;
        font-size: 16px;
        padding: 10px;
    }

    /* Map */
    .location-container {
        flex-direction: column;
        text-align: center;
        padding: 20px 10%;
    }

    .location-image img {
        width: 200px; /* Reduce image size */
    }

    .location-details {
        font-size: 16px;
        margin-top: 10px;
    }

    .location-details h3 {
        font-size: 18px;
    }
    .daily-updates {
        margin: 10px 30px;
    }
    .daily-updates h1 {
        font-size: 30px;
    }
    .a-card {
        width: 100%;
        max-width: 400px;
    }
}

@media (max-width: 477px) {
    /* Navigation */
    .navbar {
        padding: 15px;
    }
    .navbarlogo span {
        font-size: 18px;
    }
    .welcome-container {
        padding: 40px 5%;
    }
    .barangay-logo {
        width: 200px;
        height: 200px;
        margin-top: 15px;
        margin-right: auto;
    }
    .submit-btn, .clear-btn {
        width: 40%;
        font-size: 14px;
        padding: 8px;
        float: none;
        display: block;
        margin: 15px auto; /* Center the button */
    }

    /* Welcome page */
    .welcome-text {
        font-size: 24px;
    }
    .barangay-name {
        font-size: 24px;
    }
    .contact-info {
        font-size: 14px;
    }
    .about-button {
        padding: 8px 16px;
        font-size: 12px;
    }
    .aboutus-section {
        padding: 20px 5%;
    }
    .brgy-info h1 {
        font-size: 22px;
    }
    .brgy-info p {
        font-size: 14px;
    }
    .name {
        max-width: 200px;
    }
    .name h3 {
        font-size: 16px;
    }
    .brgy-info h3 {
        font-size: 16px;
        line-height: 1.4;
    }

    /* Banner */
    .banner img {
        width: 100%; /* Make it full width for smaller screens */
        border-radius: 0; /* Remove border-radius for a cleaner look */
        box-shadow: none; /* Optional: Remove shadow for a flat design */
    }

    /* Mission and Vision Section */
    .missionvision-section {
        padding: 20px 5%;
    }
    .mission-container, .vision-container {
        width: 100%;
        padding: 15px;
    }
    .mission-content h1, .vision-content h1 {
        font-size: 22px;
    }
    .mission-content p, .vision-content p {
        font-size: 14px;
    }

    /* Officials*/
    .barangayofficials-section {
        padding: 50px;
        background-color: white;
        text-align: center;
    }
    .barangayofficials-section h1 {
        color: #3a3d3e;
        font-size: 50px;
    }
    .official-list {
        display: flex;
        justify-content: center;
        gap: 25px;
        flex-wrap: wrap;
        margin-top: 20px;
    }
    .card {
        width: 100%;
        height: 330px;
        background: white;
        border-radius: 5px;
        box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.1);
        text-align: center;
        padding: 10px;
        display: flex;
        flex-direction: column;
        align-items: center;
        border: 1px solid #cecece;
    }
    .card img {
        width: 100px;
        height: 100px;
        object-fit: cover;
    }
    
    .official-name {
        font-size: 20px !important;
        font-weight: bold;
        color: #333;
        margin-bottom: 2px;
    }
    
    .official-role {
        font-size: 15px !important;
        color: #0033a0;
        font-weight: bo;
    }
    
    .pagination-controls {
        margin-top: 20px;
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 5px;
    }
    
    .page-indicator {
        width: 40px;
        height: 10px;
        background: #eee;
        border-radius: 2px;
        transition: all 0.3s ease;
        cursor: pointer;
    }
    
    .page-indicator.active {
        background: #0033a0;
        width: 50px;
    }

    /* Services */

    /* Track */
    .track-text h2 {
        font-size: 24px;
    }
    .track-text p {
        font-size: 14px;
    }
    .track-container {
        padding: 15px;
    }
    .track-form {
        max-width: 100%;
    }
    .track-form input {
        font-size: 14px;
        padding: 10px;
        width: 65%; /* Ensures it stays inline */
    }
    .track-form button {
        font-size: 14px;
        padding: 10px;
        width: 35%;
    }
    table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .track {
        padding: 15px;
    }

    /* Map */
    .map-container {
        height: 300px; /* Reduce map height */
    }

    .location-container {
        padding: 15px;
    }

    .location-image img {
        width: 150px; /* Further reduce image size */
    }

    .location-details {
        font-size: 14px;
    }

    .location-details h3 {
        font-size: 16px;
    }
    .daily-updates {
        margin: 10px 15px;
    }
    .daily-updates h1 {
        font-size: 28px;
    }
    .a-card-content {
        text-align: center;
    }

}
@media (max-width: 390px) {
    /* Navigation */
    .navbar {
        padding: 12px;
    }
    .navbarlogo span {
        font-size: 16px;
    }
    .menu-icon {
        padding-right: 20px;
    }

    /* Welcome page */
    .welcome-container {
        padding: 30px 5%;
    }
    .barangay-logo {
        width: 180px;
        height: 180px;
        margin-right: auto;
    }
    .welcome-text {
        font-size: 22px;
    }
    .barangay-name {
        font-size: 22px;
    }
    .contact-info {
        font-size: 13px;
    }
    .about-button {
        padding: 7px 14px;
        font-size: 12px;
    }

    /* About us section */
    .aboutus-section {
        padding: 20px 5%;
    }
    .brgy-info h1 {
        font-size: 20px;
    }
    .brgy-info p {
        font-size: 13px;
    }
    .name h3 {
        font-size: 15px;
    }

    /* Banner */
    .banner img {
        width: 100%;
        border-radius: 0;
        box-shadow: none;
    }

    /* Mission and Vision */
    .missionvision-section {
        padding: 20px 5%;
    }
    .mission-container, .vision-container {
        width: 100%;
        padding: 12px;
    }
    .mission-content h1, .vision-content h1 {
        font-size: 20px;
    }
    .mission-content p, .vision-content p {
        font-size: 13px;
    }

    /* Officials */
    .official-list {
        justify-content: center;
    }
    .card {
        width: 100%;
        height: auto;
        padding: 8px;
    }
    .card img {
        width: 90px;
        height: 90px;
    }
    .official-name {
        font-size: 18px;
    }
    .official-role {
        font-size: 14px;
    }

    /* Services */

    /* Track */
    .track-text h2 {
        font-size: 22px;
    }
    .track-text p {
        font-size: 13px;
    }
    .track-container {
        padding: 12px;
    }
    .track-form input {
        font-size: 13px;
        padding: 8px;
        width: 65%;
    }
    .track-form button {
        font-size: 13px;
        padding: 8px;
        width: 35%;
    }

    /* Map */
    .map-container {
        height: 250px;
    }
    .location-container {
        padding: 12px;
    }
    .location-image img {
        width: 140px;
    }
    .location-details {
        font-size: 13px;
    }
    .location-details h3 {
        font-size: 15px;
    }
    .submit-btn, .clear-btn {
        width: 50%;
        font-size: 14px;
        padding: 8px;
    }
    .daily-updates {
        margin: 10px;
    }
    .daily-updates h1 {
        font-size: 26px;
    }
    .a-card {
        width: 100%;
    }
    .a-card-content p {
        font-size: 14px;
    }
}

/* INCIDENT REPORTS */
.incidentreport {
    padding: 0;
    background: linear-gradient(135deg, #2cd7c6aa 0%, #24b3a5aa 100%);
    max-width: 900px;
    margin: 4rem auto;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    font-family: 'Poppins', 'Segoe UI', sans-serif;
    overflow: hidden;
}

.incident-header {
    background: linear-gradient(135deg, #2cd7c6 0%, #24b3a5 100%);
    padding: 2rem;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}

.incident-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.header-content {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    z-index: 1;
    position: relative;
}

.icon-container {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    backdrop-filter: blur(10px);
}

.header-text h1 {
    font-size: 2.2rem;
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.header-text p {
    margin: 0;
    font-size: 1rem;
    opacity: 0.9;
    font-weight: 300;
}

.toggle-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    z-index: 1;
    position: relative;
}

.toggle-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.toggle-btn i {
    transition: transform 0.3s ease;
}

.toggle-btn.active i {
    transform: rotate(180deg);
}

/* Form Container */
.form-container {
    background: white;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.hidden {
    max-height: 0;
    opacity: 0;
}

.visible {
    max-height: 1500px;
    opacity: 1;
}

.form-wrapper {
    padding: 2.5rem;
}

/* Form Styling */
#incidentForm {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: span 2;
}

.form-group label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: #2c3e50;
}

.form-group label i {
    color: #667eea;
    width: 16px;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 1rem;
    border: 2px solid #e1e8ed;
    border-radius: 12px;
    font-size: 1rem;
    background-color: #fff;
    color: #2c3e50;
    transition: all 0.3s ease;
    font-family: inherit;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: #24b3a5;
    outline: none;
    background-color: #ffffff;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    transform: translateY(-1px);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #95a5a6;
    font-style: italic;
}

/* Form Actions */
.form-actions {
    grid-column: span 2;
    display: flex;
    margin-top: 1.5rem;
    justify-content: flex-end;
}

.submit-btn {
    padding: 1rem 1rem;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    align-items: center;
    gap: 0.5rem;
    transition: all 0.3s ease;
    min-width: 140px;
    justify-content: center;
}

.submit-btn {
    background: linear-gradient(135deg, #00b894, #00cec9);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 184, 148, 0.3);
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 184, 148, 0.4);
}
  
  /* Responsive for Mobile */
  @media (max-width: 768px) {
    #incidentForm {
      grid-template-columns: 1fr;
    }
  }

  .error-message {
    color: red;
    font-size: 0.85em;
    display: block;
}

/* HOTLINE */
.hotline-banner {
    background-image: url(IMAGE/hotline.webp);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 50px 20px;
    position: relative;
    overflow: hidden;
}

        .hotline-banner::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
        }

        .hotline-container {
            max-width: 1200px;
            margin: 0 auto;
            position: relative;
            z-index: 1;
        }

        .hotline-header {
            text-align: center;
            margin-bottom: 40px;
        }

        .hotline-header h2 {
            color: #fff;
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 10px;
            text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
        }

        .hotline-header p {
            color: rgba(255,255,255,0.95);
            font-size: 1.1rem;
        }

        .hotline-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
            gap: 25px;
            margin-top: 30px;
        }

        .hotline-card {
            background: rgba(255,255,255,0.95);
            border-radius: 8px;
            padding: 30px;
            text-align: center;
            transition: all 0.3s ease;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            border: 2px solid transparent;
        }


        .hotline-icon {
            width: 70px;
            height: 70px;
            margin: 0 auto 20px;
            background: linear-gradient(135deg, #24b3a5 0%, #1a9d8f 100%);
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 2rem;
        }

        .hotline-card h3 {
            color: #333;
            font-size: 1.4rem;
            margin-bottom: 15px;
            font-weight: 600;
        }

        .hotline-number {
            display: block;
            font-size: 1.8rem;
            font-weight: 700;
            color: #1a877c;
            margin: 15px 0;
            text-decoration: none;
            transition: all 0.3s ease;
        }

        .hotline-description {
            color: #666;
            font-size: 0.95rem;
            line-height: 1.5;
        }

        .emergency-notice {
            background: rgba(255,255,255,0.15);
            border: 2px solid rgba(255,255,255,0.3);
            border-radius: 10px;
            padding: 20px;
            margin-top: 40px;
            text-align: center;
        }

        .emergency-notice p {
            color: #fff;
            font-size: 1.1rem;
            font-weight: 500;
        }

        .pulse {
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% {
                transform: scale(1);
            }
            50% {
                transform: scale(1.05);
            }
        }

        @media (max-width: 768px) {
            .hotline-header h2 {
                font-size: 2rem;
            }

            .hotline-grid {
                grid-template-columns: 1fr;
            }

            .hotline-number {
                font-size: 1.5rem;
            }
        }